# -*- coding: utf-8 -*-

import random


d1={'programaçao 1' :15,
    'programaçao 2': 13,
    'matematica': 12,
    'linguagens programaçao':17}

d2={'desenho' ,
    'evt',
    'fisica',
    'moral'}

    
media= 0.0
c= 0
for  valor in d1.itervalues():
	
    media += valor
    c += 1
    
media /= c
    
    
    
print "media= ", media


for chave, valor in d1.iteritems():
   print chave,valor
   
def gerar_notas(N):
    for i in range(N):
        yield [int(round(random.uniform(0,20))) for k in range(1)]
        
        
        
gen = gerar_notas(4)

print gen.next()
print gen.next()
print gen.next()
print gen.next()

print



